package com.zhuang.chapter17.work02;

public class BankAccountClient {

	public static void main(String[] args) {
		BankAccount bankAccount = new BankAccount();
		int money = 1000;
		bankAccount.saveMoney(money);

		System.out.println("已存入" + money + "元,还剩下" + bankAccount.getLeftmoney() + "元");

		int money1 = 800;
		bankAccount.getMoney(money1);

		System.out.println("已取出" + money1 + "元,还剩下" + bankAccount.getLeftmoney() + "元");

	}

}
